package com.ebc.eservice.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 留言表
 * </p>
 *
 * @author joey
 * @since 2022-09-17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="EbcCardMessage对象", description="留言表")
public class EbcCardMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "回复内容")
    @TableField(exist = false)
    private EbcCardMessage replyMessage;

    @ApiModelProperty(value = "留言id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "名片id")
    private Integer cardId;

    @ApiModelProperty(value = "留言人id")
    private Integer userId;

    @ApiModelProperty(value = "称呼")
    private String userName;

    @ApiModelProperty(value = "留言内容")
    private String content;

    @ApiModelProperty(value = "回复人id")
    private Integer replyId;

    @ApiModelProperty(value = "公开状态 ")
    private Integer open;

    @ApiModelProperty(value = "回复状态 回复状态 1:回复 0:未回复")
    private Integer replyStatus;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer del;

    @ApiModelProperty(value = "乐观锁")
    @Version //乐观锁
    private Integer version;

    private Integer createId;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    private Integer updateId;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
